package com.shanzhe.eshop.finance.service;

import com.shanzhe.eshop.wms.pojo.PurchaseInputOrderDTO;
import com.shanzhe.eshop.wms.pojo.ReturnGoodsInputDTO;
import com.shanzhe.eshop.wms.pojo.SaleDeliveryOrderDTO;

/**
 * @Author yinwei
 * @create 2021/9/26
 * @Version 1.0
 * @desc 财务中心对外提供接口
 */
public interface FinanceFacadeService {

    /**
     * 创建采购结算单
     * @param purchaseInputOrderDTO 采购入库单实体
     * @return Boolean 处理结果
     */
    Boolean createPurchaseSettlementOrder(PurchaseInputOrderDTO purchaseInputOrderDTO);

    /**
     * 给物流公司打款
     * @param saleDeliveryOrderDTO 销售出库单
     * @return Boolean 处理结果
     */
    Boolean payForLogisticsCompany(SaleDeliveryOrderDTO saleDeliveryOrderDTO);

    /**
     * 执行退款操作
     * @param returnGoodsInputDTO 退货入库单实体
     * @return Boolean 处理结果
     */
    Boolean payForLogisticsCompany(ReturnGoodsInputDTO returnGoodsInputDTO);
}
